home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-08-20 | 7.8 KB | 202 lines | [TEXT/MPS ] |
-
- # Below are in order the things you need to do in MacTerminal and MPW
- # to burn the flash ROM on the NCR8250S card. We'll switch back and
- # forth (get it!) between MPW and MacTerminal worksheets in the order
- # that things are done. Below is just the dump of the sessions in order.
-
- # Let's begin!
- #
- # Make sure your NCR 8250S card is plugged into the 2nd slot from the
- # CPU (known as B1 on the silkscreen, or Bus 1, device E, in Open Firmware.
- # The only reason this slot location is important is because the Flash program
- # looks for the device there.
- #
- # Open 'Open Firmware Settings' with MacTerminal. Remember to open the connection
- # from the "Session" menu. Turn on your TNT or Tsunami and hold the NMI and RESET
- # buttons together. Then release the RESET button, while still holding NMI. Then
- # release NMI. You should be in the Open Firmware User Interface (OF UI) now with
- # your MacTerminal Session.
-
-
- # MPW session to create flash_image.txt
- #
- # Copy CForth93, tokenizer.dic, and NCR.of into your working directory. Also
- # copy the makecreate script into your working directory.
- #
- # When you start MPW, set the current directory to your working directory.
- #
-
- #---------- commands to tokenize NCR.of
- # Select and enter the first line, which will enter you into
- # cforth93 environment. You're doing Forth stuff, then!
- # Select each line individually and press <enter> on the numeric keypad.
-
- cforth93 tokenizer.dic
-
- \ now we're in a Forth environment, so comments start
- \ with "\ " (remember to put a space after "\")
-
- \ let's tokenize our Forth code
- tokenize NCR.of
-
- \ dump-create doesn't work right yet, but if
- \ it did, use the line below in place of the save-image line:
-
- \ dump-create flash_image.txt
- save-image flash_image.bin
-
- \ after typing bye, you'll exit cforth93 and be back in MPW
- bye
-
-
- #---------- convert binary image to "create" format for downloading to Open Firmware
- makecreate flash_image.bin flash_image.txt
- # The makecreate script is crude and slow, but it works for usual cases
-
- # now flash_image.txt is ready to be downloaded to Open Firmware
-
- # MacTerminal Session
- Open Firmware, 0.99a ok
- 0 > \ Let's look at the device tree to make sure we find ok
- 0 > \ the NCR card. ok
- 0 > dev / ls
- FFB20190: /chosen@0,0
- FFB202B0: /cpu0@0,0
- FFB204D8: /system-memory@0
- FFB205B8: /openprom@0,0
- FFB20670: /mac-rom@0,0
- FFB206F8: /options@0,0
- FFB20A58: /aliases@0,0
- FFB20B90: /packages@0,0
- FFB20BF0: /deblocker@0,0
- FFB20C50: /disk-label@0,0
- FFB20CB0: /bandit@F2000000
- FFB20E90: /gc@10
- FFB21118: /53c94@10000
- FFB211C8: /sd@0,0
- FFB21278: /mesh@18000
- FFB21328: /sd@0,0
- FFB213D0: /mace@11000
- FFB214A8: /escc@13020
- FFB21580: /escc@13000
- FFB21658: /awac@14000
- FFB21730: /swim3@15000
- FFB21808: /via-cuda@16000
- FFB218D0: /adb@0,0
- FFB21950: /keyboard@0,0
- FFB219F8: /mouse@1,0
- FFB21AA0: /pram@0,0
- FFB21B48: /rtc@0,0
- FFB21BE8: /power-mgt@0,0
- FFB21E40: /AAPL,NCR8250S@E
- FFB21C90: /kaos@F0000000
- FFB22158: /control@B
- FFB22360: /planb@D
- ok
- 0 > \ You notice that AAPL,NCR8250S@E is there. This card had ok
- 0 > \ been programmed before. If it was a blank Flash ROM ok
- 0 > \ it would appear as pci1000,3@E.
- 0 > \
- 0 > \ IMPORTANT: The current version of the NCR-FLASH.of program
- 0 > \ assumes that your NCR card is in slot E, i.e., the 2nd PCI
- 0 > \ slot out from the processor card.
- 0 > \
- 0 > \ Now let's get back to the root level, so we can download.
- 0 > dev .. ok
- 0 > \ Now let's download the program NCR-FLASH.of. We'll type ok
- 0 > \ dl <return> and OF will be waiting for the download. You ok
- 0 > \ can use either Send File or copy and paste at this point ok
- 0 > \ to download. Remember to type ctrl-d to end the download ok
- 0 > dl ok
- 0 > \ now let's download flash_image.txt. You should have already ok
- 0 > \ run the tokenizer from MPW on NCR.of to get flash_image.bin ok
- 0 > \ and then used the MPW script to make flash_image.txt. If ok
- 0 > \ you haven't done that yet, do so now in MPW. ok
-
- 0 > \ it'll take a while to copy, then paste. And, after you hit ok
- 0 > \ ctrl-d, there'll be a long pause, since the file is ok
- 0 > \ pretty large. ok
- 0 > dl ok
- 2 > ok
- 2 > \ At this point, the address and length of your downloaded image ok
- 2 > \ should be on the stack, ready for the nv-flash command ok
- 2 > \
- 2 > \ If you want to look at the image that was downloaded, ok
- 2 > \ you can try the following command to see the first $100 ok
- 2 > \ bytes: ok
- 2 > over 100 dump
- FFB667A4: 55 AA 40 00 00 00 00 00 00 00 00 00 00 00 00 00
- FFB667B4: 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00
- FFB667C4: 50 43 49 52 00 10 03 00 00 00 20 00 00 00 00 01
- FFB667D4: 1D 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00
- FFB667E4: F1 08 01 54 00 00 38 77 12 0D 41 41 50 4C 2C 4E
- FFB667F4: 43 52 38 32 35 30 53 02 01 12 04 73 63 73 69 01
- FFB66804: 1A 12 05 38 32 35 30 53 01 19 A5 A5 01 03 01 13
- FFB66814: A5 01 11 A5 01 11 01 12 01 12 A5 A5 01 03 10 01
- FFB66824: 00 00 10 24 01 13 A5 01 11 10 00 00 01 00 01 11
- FFB66834: 01 12 01 12 A5 A5 01 03 10 02 00 00 14 24 01 13
- FFB66844: A5 01 11 10 00 00 01 00 01 11 01 12 01 12 01 12
- FFB66854: 12 03 72 65 67 01 10 A5 01 11 A5 01 11 01 12 10
- FFB66864: 00 72 70 E0 01 11 10 00 72 70 E0 01 11 01 12 01
- FFB66874: 12 A5 01 11 A5 01 11 01 12 01 12 10 00 7B 98 A0
- FFB66884: 01 11 10 00 7B 98 A0 01 11 01 12 01 12 12 11 70
- FFB66894: 6F 77 65 72 2D 63 6F 6E 73 75 6D 70 74 69 6F 6E ok
- 2 > \ now let's erase the flash ROM. ok
- 2 > nv-erase ok
- 2 > \ to see that it worked, let's dump a few locations ok
- 2 > 8fff8000 100 dump
- 8FFF8000: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
- 8FFF8010: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
- 8FFF8020: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
- 8FFF8030: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
- 8FFF8040: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
- 8FFF8050: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
- 8FFF8060: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
- 8FFF8070: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
- 8FFF8080: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
- 8FFF8090: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
- 8FFF80A0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
- 8FFF80B0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
- 8FFF80C0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
- 8FFF80D0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
- 8FFF80E0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
- 8FFF80F0: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ok
- 2 > \ that looks pretty erased to me! ok
- 2 > ok
- 2 > \ now let's program the flash ok
- 2 > nv-flash ok
- 0 > \ The 2 items that were on the stack should be gone now. ok
- 0 > \ We should see our program in the ROM now: ok
- 0 > 8fff8000 100 dump
- 8FFF8000: 55 AA 40 00 00 00 00 00 00 00 00 00 00 00 00 00
- 8FFF8010: 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00
- 8FFF8020: 50 43 49 52 00 10 03 00 00 00 20 00 00 00 00 01
- 8FFF8030: 1D 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00
- 8FFF8040: F1 08 01 54 00 00 38 77 12 0D 41 41 50 4C 2C 4E
- 8FFF8050: 43 52 38 32 35 30 53 02 01 12 04 73 63 73 69 01
- 8FFF8060: 1A 12 05 38 32 35 30 53 01 19 A5 A5 01 03 01 13
- 8FFF8070: A5 01 11 A5 01 11 01 12 01 12 A5 A5 01 03 10 01
- 8FFF8080: 00 00 10 24 01 13 A5 01 11 10 00 00 01 00 01 11
- 8FFF8090: 01 12 01 12 A5 A5 01 03 10 02 00 00 14 24 01 13
- 8FFF80A0: A5 01 11 10 00 00 01 00 01 11 01 12 01 12 01 12
- 8FFF80B0: 12 03 72 65 67 01 10 A5 01 11 A5 01 11 01 12 10
- 8FFF80C0: 00 72 70 E0 01 11 10 00 72 70 E0 01 11 01 12 01
- 8FFF80D0: 12 A5 01 11 A5 01 11 01 12 01 12 10 00 7B 98 A0
- 8FFF80E0: 01 11 10 00 7B 98 A0 01 11 01 12 01 12 12 11 70
- 8FFF80F0: 6F 77 65 72 2D 63 6F 6E 73 75 6D 70 74 69 6F 6E ok
- 0 > \ That's it. Now when you boot, you can use the ok
- 0 > \ Display Name Registry tool to see that the driver ok
- 0 > \ is actually loaded. ok
- 0 > boot
-
- # MacTerminal commands without comments or output:
- dev / ls
- dev ..
- dl
- dl
- nv-erase
- 8fff8000 100 dump
- nv-flash
- 8fff8000 100 dump
- boot
-